package com.excesys.exsecs.alarm.mapper;

import cn.hutool.json.JSONObject;
import com.excesys.exsecs.alarm.entity.AlarmRecord;
import com.excesys.exsecs.common.data.datascope.ExsecsBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

@Mapper
public interface AlarmRecordMapper extends ExsecsBaseMapper<AlarmRecord> {

    List<Map<String,Object>> getEchartsByTimeRange(@Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);

    List<Map> getAlarmTypeProp(@Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);

    List<Map> getLevelStatis(@Param("startDate") LocalDate startDate, @Param("endDate") LocalDate endDate);

    List<Map> getStatusStatis(LocalDate startDate, LocalDate endDate);
}